﻿@{
    ViewBag.Title = "VoteResult";
    Layout = "~/Views/Shared/SettingMaster.cshtml";
}
@model Vote.Web.Models.ActionListViewModel
<script src="~/ResStatic/JS/actionmanager.js" type="text/javascript"></script>
<script type="text/javascript"> var pageIndex = @ViewBag.pageIndex;var pageItemCount = @ViewBag.pageItemCount; </script>

<ul class="breadcrumb">
    <li><a href="javascript:void(0);">菜单</a> <span class="divider">/</span></li>
    <li class="active">统计投票结果</li>
</ul>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="well">
            <table class="table">
                <thead>
                    <tr>
                        <th></th>
                        <th>编号</th>
                        <th>活动名称</th>
                        <th>结束时间</th>
                        <th>查看结果</th>
                    </tr>
                </thead>
                <tbody>
                    @{
                        foreach (var item in Model)
                        {
                            <tr>
                                <td><input type="checkbox" name="cbitem" tip="@item.Id" /></td>
                                <td>@item.Id</td>
                                <td>@item.Actionname</td>
                                <td>@item.Endtime.ToString("yyyy-MM-dd")</td>
                                <td>@Html.ActionLink("查看", "ResultDetail", new { id = @item.Id })</td>
                            </tr>
                        }
                    }

                </tbody>
            </table>
        </div>
        <div class="pagination">
            <ul>
                <li><a href="javascript:void(0);" id="prePage">上一页</a></li>
                <li><a href="javascript:void(0);" id="nexPage">下一页</a></li>
                <li><a id="exorptExcel">导出投票结果</a></li>
            </ul>
        </div>
    </div>
</div>
